package ru.agiledev.akb.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import ru.agiledev.akb.shared.exception.RegistrationException;
import ru.agiledev.akb.shared.User;
import ru.agiledev.akb.shared.exception.ResetPasswordException;

import java.security.NoSuchAlgorithmException;

/**
 * Created by a.kirillov
 * Date: 4/7/11 Time: 11:44 PM
 */
@RemoteServiceRelativePath("registrationServlet")
public interface RegistrationService extends RemoteService {

  User registerUser(User user) throws RegistrationException, NoSuchAlgorithmException;
   void resetPassword(String email) throws ResetPasswordException;
    User updateUser(User user);
    void updatePassword(User user, String oldPassword) throws RegistrationException;
}
